package entity

type GoodsCollector struct {
	Id           int64   `gorm:"column:id;primary_key" json:"id"`
	ThirdGoodsId int64   `gorm:"column:third_goods_id;type:bigint;not null" json:"third_goods_id"`
	ImageURLList string  `gorm:"column:image_url_list;type:varchar(255);not null" json:"image_url_list"`
	GoodsDetail  string  `gorm:"column:goods_detail;type:varchar(255);not null" json:"goods_detail"`
	GoodsName    string  `gorm:"column:goods_name;type:varchar(255);not null" json:"goods_name"`
	GoodsPrice   float64 `gorm:"column:goods_price;type:double;not null" json:"goods_price"`
	GoodsStock   int     `gorm:"column:goods_stock;type:integer;not null" json:"goods_stock"`
	GoodsState   int     `gorm:"column:goods_state;type:integer;not null" json:"goods_state"`
	CreatedAt    int64   `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
	UpdatedAt    int64   `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
}

func (g *GoodsCollector) TableName() string {
	return "goods_collector"
}
